﻿using Architecture.Domain.Dto.UserInfoDto;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Architecture.API.Application.Command.UserInfoCommand
{
    /// <summary>
    /// 查询用户信息命令
    /// </summary>
    public class UserInfoSearchCommand : IRequest<PageUserInfoDto<UserInfoDto>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }
    }
}
